diff options
Diffstat (limited to 'app/[lng]/evcp/data-room/[projectId]/layout.tsx')
| -rw-r--r-- | app/[lng]/evcp/data-room/[projectId]/layout.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/[lng]/evcp/data-room/[projectId]/layout.tsx b/app/[lng]/evcp/data-room/[projectId]/layout.tsx index d2e74f8e..16dd4817 100644 --- a/app/[lng]/evcp/data-room/[projectId]/layout.tsx +++ b/app/[lng]/evcp/data-room/[projectId]/layout.tsx @@ -1,16 +1,18 @@ // app/projects/[projectId]/layout.tsx import { ProjectNav } from '@/components/project/ProjectNav'; -export default function ProjectLayout({ +export default async function ProjectLayout({ children, params, }: { children: React.ReactNode; - params: { projectId: string }; + params: Promise<{ projectId: string }>; }) { + const resolvedParams = await params; + return ( <div className="flex flex-col h-full"> - <ProjectNav projectId={params.projectId} /> + <ProjectNav projectId={resolvedParams.projectId} /> <div className="flex-1 overflow-y-auto"> {children} </div> |
